package Boundry;

import Boundry.GenericTools.IPanelOperation;
import Boundry.GenericTools.RequestInfoAndInputPanel;

import javax.swing.ImageIcon;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class ExecutionDonePanel  extends RequestInfoAndInputPanel implements IPanelOperation  {
	private JButton btnExeDone;
	public JButton getBtnExeDone() {
		return btnExeDone;
	}

	public void setBtnExeDone(JButton btnExeDone) {
		this.btnExeDone = btnExeDone;
	}

	public ExecutionDonePanel() {
		taExcuse.setBounds(376, 27, 490, 39);
		lbHeader.setLocation(10, 0);
		pnlUpperPanel.setBounds(10, 25, 876, 173);
		btnAskForMoreTime.setText("");
		btnSubnit.setVisible(false);
		
		JPanel panel = new JPanel();
		panel.setBounds(297, 237, 258, 89);
		mainPanel.add(panel);
		panel.setLayout(null);

		btnExeDone = new JButton("");
		btnExeDone.setIcon(new ImageIcon(ExecutionDonePanel.class.getResource("/ICONS/4_collections_view_as_grid.png")));
		btnExeDone.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnExeDone.setBounds(33, 32, 191, 51);
		panel.add(btnExeDone);
		
		JLabel lblNewLabel = new JLabel("Execution Done");
		lblNewLabel.setBounds(85, 7, 125, 14);
		panel.add(lblNewLabel);
		btnAskForMoreTime.setVisible(true);
		this.btnAskForMoreTime.setIcon(new ImageIcon(ExecutionDonePanel.class.getResource("/ICONS/10_device_access_time.png")));
		this.btnAskForMoreTime.setBounds(442, 11, 65, 32);
	}

	@Override
	public String apHelpButton() {
		return "The execution leader can report execution as done";
	}

	@Override
	public String setTitle() {
		return "Execution Done";
	}
}
